thk man but i think i have finished.
Code:
#include<stdio.h>
#include<conio.h>
main()
{
__int64 master_card;
int S1, S2, S, CDigit, number1, number2, temp;
S1=S2=S=CDigit=0;
printf("Enter Credit Card Number: \n");
scanf("%I64d", &master_card);
for(int i=1;i<=8;i++)
{
master_card=master_card/10;
number1=master_card%10;
number1=number1*2;
if (number1>9) number1=number1-9;
S1=S1 + number1;
master_card=master_card/10;
number2=master_card%10;
S2=S2+ number2;
};
S=S1+S2;
CDigit=10-(S%10);
if (CDigit==5) printf("\nYour card is validation");
else printf("\nYour card is not validation");
getch();
}